package com.fh.utils;/**
 * 描述:
 * Author:袁亚强
 * Date:2021/12/2715:20
 */

/**
 * created by macro on 2021/12/27,
 */
public class EmailThread extends Thread {
    private String to;
    private String title;
    private String content;

    public EmailThread(String to,String title,String content) {
        this.to = to;
        this.title = title;
        this.content = content;
    }
    @Override
    public void run() {
        try {
            EmailUtils.sendMail(to,title,content);
        } catch (Exception e) {
            e.printStackTrace();
        }
    }
}
